package com.bw.service.impl;

import com.bw.been.Sugar;
import com.bw.been.SugarThree;
import com.bw.been.SugarTwo;
import com.bw.mapper.OrderDao;
import com.bw.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderDao orderDao;

    @Override
    public List<Sugar> getList1() {
        return orderDao.getList1();
    }

    @Override
    public List<Sugar> getList2() {
        return orderDao.getList2();
    }

    @Override
    public List<SugarTwo> getList3() {
        return orderDao.getList3();
    }

    @Override
    public List<SugarThree> getList4() {
        return orderDao.getList4();
    }

    @Override
    public int del(Integer id) {
        return orderDao.del(id);
    }

    @Override
    public int add(SugarThree sugar) {
        return orderDao.add(sugar);
    }

    @Override
    public List<Sugar> getList5() {
        return orderDao.getList5();
    }

    @Override
    public List<Sugar> getList6() {
        return orderDao.getList6();
    }
}
